<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib  prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<link rel="stylesheet" type="text/css" href="<c:url value="/common/js/menu/menu.css"/>"/>

<div class="header" style="text-align: center; margin: 0 auto;">
	<img style="padding: 10px 25px 5px 5px; vertical-align: sub; float:left; display: inline-block;" src="<c:url value='/common/img/logo.png'/>"/>
	<div id="menu">
 		<ul class="menu">
        	<li>
        		<a href="<c:url value="/index"/>">
        			<img style="vertical-align: text-bottom; margin-right: 6px;" src="<c:url value='/common/img/home.png'/>"/>首&nbsp;&nbsp;页
        		</a>
        	</li>
 			<c:forEach items="${sessionScope.user.resourceList }" var="yiJiResources">
 				<li>
 					<c:choose>
 						<c:when test="${yiJiResources.resourceUrl == '/' }">
		 					<a href="#">
			 					<img style="vertical-align: text-bottom; margin-right: 6px;" src="<c:url value='${yiJiResources.resourceIcon }'/>"/>${yiJiResources.resourceName }
		 					</a>
 						</c:when>
 						<c:otherwise>
		 					<a href="<c:url value="${yiJiResources.resourceUrl }"/>">
			 					<img style="vertical-align: text-bottom; margin-right: 6px;" src="<c:url value='${yiJiResources.resourceIcon }'/>"/>${yiJiResources.resourceName }
		 					</a>
 						</c:otherwise>
 					</c:choose>
 					<c:if test="${null != yiJiResources.erJiResourceList && fn:length(yiJiResources.erJiResourceList) > 0 }">
 						<div>
			        		<ul>
			        			<c:forEach items="${yiJiResources.erJiResourceList }" var="erJiResources">
					                <li>
					                	<a href="<c:url value="${erJiResources.resourceUrl }"/>">${erJiResources.resourceName }</a>
					                </li>
			        			</c:forEach>
			            	</ul>
			            </div>
 					</c:if>
 				</li>
 			</c:forEach>
	        <li>
	        	<a href="#">
	        		<img style="vertical-align: text-bottom; margin-right: 6px;" src="<c:url value='/common/img/user.png'/>"/>${sessionScope.user.userName }
	        	</a>
	        	<div>
	        		<ul>
		                <li>
		                	<a href="<c:url value="/pf/user/fmPwd"/>">
		                		<img style="vertical-align: text-bottom; margin-right: 6px;" src="<c:url value='/common/img/mima.png'/>"/>修改密码
		                	</a>
		                </li>
		                <li>
		                	<a href="<c:url value="/logout"/>">
		                		<img style="vertical-align: text-bottom; margin-right: 6px;" src="<c:url value='/common/img/tuichu.png'/>"/>安全退出
		                	</a>
		                </li>
	            	</ul>
	            </div>
	        </li>
    	</ul>
	</div>
	
</div>